package com.xjgzinfo.usdp.core.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static com.xjgzinfo.usdp.constant.AuthConstant.CACHE_AUTH_TOPIC;
import static java.lang.annotation.ElementType.METHOD;

/**
 * 增删改API监听注解
 *
 * <p>加了此注解的接口消息监听<p>
 *
 * @author jinxw
 */
@Target({METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ListenerApi {
    String value() default "";

    String topic() default CACHE_AUTH_TOPIC;

    Class<?>[] classes() default {};
}
